<%@ page import="edu.auctionmart.Location" %>

<div class="fieldcontain ${hasErrors(bean: locationInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="location.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${locationInstance?.name}" disabled="true"/>
</div>

<div class="fieldcontain ${hasErrors(bean: locationInstance, field: 'addressLine', 'error')} required">
	<label for="addressLine">
		<g:message code="location.addressLine.label" default="Address Line" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="addressLine" required="" value="${locationInstance?.addressLine}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: locationInstance, field: 'zipCode', 'error')} required">
	<label for="zipCode">
		<g:message code="location.zipCode.label" default="Zip Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="zipCode"  required="" value="${locationInstance?.zipCode}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: locationInstance, field: 'town', 'error')} required">
	<label for="town">
		<g:message code="location.town.label" default="Town" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="town" required="" value="${locationInstance?.town}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: locationInstance, field: 'state', 'error')} required">
	<label for="state">
		<g:message code="location.state.label" default="State" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="state" required="" from="${locationInstance.constraints.state.inList}" value="${locationInstance?.state}" valueMessagePrefix="location.state" noSelection="['': '']"/>
</div>

<g:hiddenField name="userId" value="${userInstance?.id}" />

